package com.relife.core.qbc;

import java.io.Serializable;

import org.hibernate.criterion.Criterion;
import org.hibernate.sql.JoinType;

public class QbcAlias implements Serializable {
	/**
	 * @author WU
	 * @date 2017年2月6日 下午3:57:33
	 */
	private static final long serialVersionUID = -1943120909712073490L;
	private String name;
	private JoinType joinType = JoinType.INNER_JOIN;
	private Criterion crit = null;

	public QbcAlias() {
	}

	public QbcAlias(String name) {
		this.name = name;
	}

	public QbcAlias(String name, JoinType joinType) {
		this.name = name;
		this.joinType = joinType;
	}

	public QbcAlias(String name, JoinType joinType, Criterion crit) {
		this.name = name;
		this.joinType = joinType;
		this.crit = crit;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public JoinType getJoinType() {
		return joinType;
	}

	public void setJoinType(JoinType joinType) {
		this.joinType = joinType;
	}

	public Criterion getCrit() {
		return crit;
	}

	public void setCrit(Criterion crit) {
		this.crit = crit;
	}

}
